<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <script language="javascript">
    window.onload = function() {
      //获得SVG文档的DOM结构
      var svgdoc = document.getElementById("id1").getSVGDocument();
    }
  </script>
</head>

<body>

  <!-- 插入SVG文档 -->
  <embed id="id1" pluginspage="http://www.adobe.com/svg/viewer/install/" src="a.svg" height="200px" width="400px" type="image/svg+xml">

</body>

</html>